/**
 * @project_name staff_vehicle
 * @package_name com.ssh.web
 * @desc TODO
 * @param
 * @author jack
 * @date 2013-4-24
 * @time 下午5:23:47
 */
package com.ssh.web;

import java.util.List;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
import com.ssh.model.MyAFL;
import com.ssh.ser.comonstaff.MyAFLSerI;

/**
 * @author jack
 *
 */
// 请假历史查看Action
public class AflInfoViewAction extends ActionSupport {
	/**
	 * TODO
	 */
	private static final long serialVersionUID = 1L;
	private MyAFLSerI myAFLSerI;
	private List<MyAFL> myAFLList ;

	/*
	 * (non-Javadoc)
	 *
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		try {
			String staffId = (String) ServletActionContext.getContext()
					.getSession().get("staffId");
			myAFLList = myAFLSerI.viewMyAFISerI(staffId);
		} catch (Exception e) {
			return "error";
		}

		return "ok";
	}

	/**
	 * @return the myAFLSerI
	 */
	public MyAFLSerI getMyAFLSerI() {
		return myAFLSerI;
	}

	/**
	 * @param myAFLSerI
	 *            the myAFLSerI to set
	 */
	public void setMyAFLSerI(MyAFLSerI myAFLSerI) {
		this.myAFLSerI = myAFLSerI;
	}



	/**
	 * @return the myAFLList
	 */
	public List<MyAFL> getMyAFLList() {
		return myAFLList;
	}

	/**
	 * @param myAFLList the myAFLList to set
	 */
	public void setMyAFLList(List<MyAFL> myAFLList) {
		this.myAFLList = myAFLList;
	}

}
